package com.tangding.log.impl;

import org.springframework.stereotype.Component;

import com.tangding.hprose.api.server.command.Response;
import com.tangding.log.LogMatcher;

/**
 * @description 
 *
 * @author Ranger
 * @version 2017年12月20日_下午5:52:09
 *
 */
@Component
public class ForceOutlineLog extends LogMatcher {
	
	@Override
	public String cmdDisplay(String cmd, Object... args) {
		Object[] as = (Object[])(args[0]);
		return "强制id为【" + as[0] +"】的用户下线";
	}
	
	@Override
	public String responseDisplay(Response response) {
		if (response.getData() != null && (Boolean) response.getData()) {
			return "操作成功";
		}
		return "操作失败";
	}
}